package wizard;

import libreria.WizardFlow;
import libreria.layouts.BasicWizardLayout;
import steps.step_1_def_criterios;
import steps.step_2_comp_criterios;
import steps.step_3_def_alternativas;
import steps.step_4_comp_alternativas;
import steps.step_5_lista_resultados;
import steps.step_5_resultados;

/**
 * Created by Usuario on 26/09/2014.
 */
public class MetodoWizard extends BasicWizardLayout {


    public MetodoWizard() {
        super();
    }

    /**
     * Set up the Wizard's flow. Use {@link libreria.WizardFlow.Builder} to create the Wizard's flow.
     */
    @Override
    public WizardFlow onSetup() {

        return new WizardFlow.Builder()
                .addStep(step_1_def_criterios.class)
                .addStep(step_3_def_alternativas.class)
                .addStep(step_2_comp_criterios.class, true)
                .addStep(step_4_comp_alternativas.class)
                //.addStep(step_5_lista_resultados.class)
                .addStep(step_5_resultados.class)
                .create();


    }

    /**
     * Triggered when the wizard is completed.
     * Overriding this method is optional.
     * Default implementation closes the wizard and goes back to the calling Activity.
     * Override this method to change the default behavior.
     */
    @Override
    public void onWizardComplete() {
        super.onWizardComplete();
        getActivity().finish();
    }


}
